objects = DBFBuf.o DBFile.o DBHash.o DBIndexManager.o DBPageManager.o 
INCLUDE = ../include
CFLAGS = -O2

CC = gcc

.PHONY: all clean

all: FileIO.a

FileIO.a: $(objects)
	ar qcv $@ $(objects)

$(objects): %.o: %.c
	$(CC) -g -c $(CFLAGS) $< -I $(INCLUDE) -o $@

clean:
	rm -rf *.o
	rm -rf *.a
